﻿using An_Im.Core;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;

namespace An_Im.Converter
{
    internal class NativeAnimEffectNewNameConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
                return string.Empty;
            if (value is NativeAnimEffect)
            {
                var eff = value as NativeAnimEffect;
                return eff.ReplacedName;
            }
            return string.Empty;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            
            return value;
        }
    }
}
